<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //利用Array创建数组
        var info = new Array(
            new Array('Tom',18),
            new Array('Bob',19)
        );
        console.log(info[0]);
        console.log(info[0][0]);

        console.log("             ");
        //利用[]创建数组
        var nums = [[1,2,3],[4,5,6]];
        console.log(nums[0]);
        console.log(nums[1][0]);
        
    </script>
</head>
<body>
    
</body>
</html>